package test;

public class Counter {
    private int counterValue;

    public Counter(int initialValue) {
        this.counterValue = initialValue;
    }

    public void increment() {
        counterValue++;
    }

    public void decrement() {
        counterValue--;
    }

    public void reset() {
        counterValue = 0;
    }

    public int getCounterValue() {
        return counterValue;
    }
}
